#include "rational.h"
#include <iostream>

using std::cout;
using std::endl;

int main (int argc, char** argv) {
    Rational r1(1,1);
    Rational r2(3,2);
    Rational r3(1,10);
    
    cout<<"r1 = "<<r1<<endl;
    cout<<"r2 = "<<r2<<endl;
    cout<<"r3 = "<<r3<<endl;
    
    cout<<"(r1 + r2)/r3 = "<<((r1+r2)/r3)<<endl;
    
    cout<<"++r1 = "<<(++r1)<<endl;
    cout<<"r1++ = "<<(r1++)<<endl;
    cout<<"r1 + r2 = "<<((r1+r2))<<endl;
    
    cout<<"r3 < r1 = "<<(r3 < r1)<<endl;
    cout<<"r3 > r1 = "<<(r3 > r1) <<endl;
    
    cout<<"(r2 * 2)/r3 = "<<(r2 * Rational(2)/r3)<<endl;
    return 0;
}